package org.sgx.gwteditors.testgallery.manual.test;

import java.util.HashMap;
import java.util.Map;

import org.sgx.gwteditors.testgallery.gallery.Array1DEditor2Test1;
import org.sgx.gwteditors.testgallery.gallery.EditorOfEditorTest1;
import org.sgx.gwteditors.testgallery.gallery.Test;

public class ManualTestHome {
	private static ManualTestHome instance;

	private ManualTestHome() {
		tests = new HashMap<String, Test>();
		tests.put("color1", new ColorEditorTest1());
		tests.put("PlayerEditorTest", new PlayerEditorTest());
		tests.put("Array1DEditor2Test1", new Array1DEditor2Test1());
		tests.put("EditorOfEditorTest1", new EditorOfEditorTest1());
		
	}

	public static ManualTestHome getInstance() {
		if (instance == null)
			instance = new ManualTestHome();
		return instance;
	}
	

	Map<String, Test> tests;

	/**
	 * @param key
	 * @return
	 * @see java.util.Map#get(java.lang.Object)
	 */
	public Test get(String key) {
		return tests.get(key);
	}
	
	

}
